package threading;

/**
 * @author 徐志荣
 * @date 2023/3/12 13:38
 */
public class ThreadDemo7 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println("hello t");
        });
        thread.start();


            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        System.out.println(thread.isAlive());
    }
}
